package chapter01;

import java.util.Scanner;

public class Test11_Ternary {
    public static void main(String[] args) {
        //比较两个数的大小
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int max = 0;
        max = a>b?a:b;
        System.out.println("两者之间的最大值为："+max);
        //计算3个数的最大值
        max = a > b ? a > c ? a : c : b > c ? b : c;
        System.out.println("三者之间的最大值为："+max);
    }
}
